package com.tcm.im.dao.mapper;

import com.tcm.im.entity.ImChat;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ImChatMapper {

    ImChat findOnlineByChatId(@Param("fromId") Long fromId, @Param("chatId") String chatId);

    int insert(ImChat record);

    int deleteOnline(@Param("fromId") Long fromId,  @Param("chatId") String chatId);

    int update(ImChat record);

    List<ImChat> listOnline(@Param("fromId") Long fromId);

}